home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Easy 2010 May
/
Mac Life Ubuntu.iso
/
casper
/
filesystem.squashfs
/
usr
/
share
/
python-support
/
gnome-games-data
/
gnome_sudoku
/
gnome_sudoku.py
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Python Source
|
2009-04-14
|
428 b
|
23 lines
# -*- coding: utf-8 -*-
import sys
# Ignore any exceptions writing to stdout using print statements
class SafeStdout:
def __init__(self):
self.stdout = sys.stdout
def fileno(self):
return self.stdout.fileno()
def write(self, data):
try:
self.stdout.write(data)
except:
pass
sys.stdout = SafeStdout()
def start_game ():
import main
main.start_game()